#-------------------------------------------------
#
# Project created by QtCreator 2020-11-13T10:14:55
#
#-------------------------------------------------

QT       += core gui concurrent

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = ONNX_ImgEnhance
TEMPLATE = app

# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

CONFIG += c++11

win32-msvc*:QMAKE_CXXFLAGS += /wd"4819" /utf-8  #disable c4819 not unicode warning, VS2017必须加上 /utf-8才能正常点，要不头文件c文件都不能在qtcreator正常识别(代码补全)

### onnx runtime lib setting
ONNXRuntimeInclude = "D:/ONNXRuntime/onnxruntime.1.5.2/build/native/include"
ONNXRuntimeLibDir = "D:/ONNXRuntime/onnxruntime.1.5.2/runtimes/win-x64/native"

LIBS += $${ONNXRuntimeLibDir}/*.lib
INCLUDEPATH += $${ONNXRuntimeInclude}
###

### opencv lib setting
OpencvDir = 'D:/Opencv/opencv_455/build'
INCLUDEPATH += $${OpencvDir}/include

CONFIG(debug, debug|release){
    LIBS += $${OpencvDir}/x64/vc15/lib/opencv_world455d.lib
}else:CONFIG(release, debug|release){
    LIBS += $${OpencvDir}/x64/vc15/lib/opencv_world455.lib
}
###

### cuda library setting
CUDA_DIR = "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.6"

INCLUDEPATH += $${CUDA_DIR}/include
LIBS += $${CUDA_DIR}/lib/x64/*.lib
###

### TensorRT库设置
TensorRT_DIR = 'D:/TensorRT/TensorRT-8.4.0.6.Windows10.x86_64.cuda-11.6.cudnn8.3'

INCLUDEPATH += $${TensorRT_DIR}/include \
               'C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.6/include' \


LIBS += $${TensorRT_DIR}/lib/*.lib
###


SOURCES += \
        ImgEnhanceWidget.cpp \
    ImgEnhance_main.cpp \
    OnnxRuntimeObj.cpp \
    LoggerForTRT.cpp

HEADERS += \
        ImgEnhanceWidget.h \
    OnnxRuntimeObj.h \
    LoggerForTRT.h

FORMS += \
        ImgEnhanceWidget.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
